home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
arovin1a
/
monster.frm
< prev
next >
Wrap
Text File
|
1999-10-09
|
5KB
|
182 lines
VERSION 4.00
Begin VB.Form Monster
BorderStyle = 0 'None
ClientHeight = 2385
ClientLeft = 3180
ClientTop = 2985
ClientWidth = 2700
ClipControls = 0 'False
ControlBox = 0 'False
Height = 2820
Icon = "Monster.frx":0000
Left = 3120
LinkTopic = "Monster"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2385
ScaleWidth = 2700
ShowInTaskbar = 0 'False
Top = 2610
Visible = 0 'False
Width = 2820
Begin VB.PictureBox Picture1
AutoRedraw = -1 'True
AutoSize = -1 'True
Height = 990
Index = 7
Left = -45
ScaleHeight = 62
ScaleMode = 3 'Pixel
ScaleWidth = 68
TabIndex = 7
Top = -90
Visible = 0 'False
Width = 1080
End
Begin VB.PictureBox Picture1
AutoRedraw = -1 'True
AutoSize = -1 'True
Height = 990
Index = 6
Left = -45
ScaleHeight = 62
ScaleMode = 3 'Pixel
ScaleWidth = 68
TabIndex = 6
Top = -90
Visible = 0 'False
Width = 1080
End
Begin VB.PictureBox Picture1
AutoRedraw = -1 'True
AutoSize = -1 'True
Height = 990
Index = 5
Left = -45
ScaleHeight = 62
ScaleMode = 3 'Pixel
ScaleWidth = 68
TabIndex = 5
Top = -90
Visible = 0 'False
Width = 1080
End
Begin VB.PictureBox Picture1
AutoRedraw = -1 'True
AutoSize = -1 'True
Height = 990
Index = 4
Left = -45
ScaleHeight = 62
ScaleMode = 3 'Pixel
ScaleWidth = 68
TabIndex = 4
Top = -90
Visible = 0 'False
Width = 1080
End
Begin VB.PictureBox Picture1
AutoRedraw = -1 'True
AutoSize = -1 'True
Height = 990
Index = 3
Left = -45
ScaleHeight = 62
ScaleMode = 3 'Pixel
ScaleWidth = 68
TabIndex = 3
Top = -90
Visible = 0 'False
Width = 1080
End
Begin VB.PictureBox Picture1
AutoRedraw = -1 'True
AutoSize = -1 'True
Height = 990
Index = 2
Left = -45
ScaleHeight = 62
ScaleMode = 3 'Pixel
ScaleWidth = 68
TabIndex = 2
Top = -90
Visible = 0 'False
Width = 1080
End
Begin VB.PictureBox Picture1
AutoRedraw = -1 'True
AutoSize = -1 'True
Height = 990
Index = 1
Left = -45
ScaleHeight = 62
ScaleMode = 3 'Pixel
ScaleWidth = 68
TabIndex = 1
Top = -90
Visible = 0 'False
Width = 1080
End
Begin VB.PictureBox Picture1
AutoRedraw = -1 'True
AutoSize = -1 'True
Height = 990
Index = 0
Left = -45
ScaleHeight = 62
ScaleMode = 3 'Pixel
ScaleWidth = 68
TabIndex = 0
Top = -90
Visible = 0 'False
Width = 1080
End
Begin VB.Timer Timer1
Interval = 1
Left = 1350
Top = 210
End
End
Attribute VB_Name = "Monster"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
Option Explicit
Private Sub Form_Load()
TopZ Me
End Sub
Private Sub Picture1_DblClick(Index As Integer)
End
End Sub
Private Sub Picture1_MouseDown(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
ReleaseCapture
SendMessage Me.hwnd, WM_NCLBUTTONDOWN, HTCAPTION, 0&
End Sub
Private Sub Timer1_Timer()
Dim hRgn(7) As Long
Static i As Integer
Picture1(i).Picture = LoadPicture(App.Path & "\Monster\Gif" & i & ".bmp")
hRgn(i) = GetBitmapRegion(Picture1(i).Picture, vbBlack)
SetWindowRgn Me.hwnd, hRgn(i), True
Monster.Show
If i = 0 Then
Picture1(7).Visible = False
Else
Picture1(i - 1).Visible = False
End If
Picture1(i).Visible = True
DeleteObject hRgn(i)
'************************************************
Haunt Me '************ HAPPY HALLOWEEN **********
'************************************************
i = i + 1
If i = 8 Then i = 0
End Sub